package com.bwie.system.exception;

import com.bwie.common.constants.ResultConstants;
import lombok.Data;

@Data
public class BusinessException extends RuntimeException{
    private Integer code;
    private ResultConstants msg;

    public BusinessException(ResultConstants msg) {
        this.msg = msg;
    }

    public BusinessException(Integer code, ResultConstants msg) {
        this.code = code;
        this.msg = msg;
    }
}
